<template>
  <div class="about">
    <h1>count{{count}}</h1>
    <button @click="changeCount">count修改</button>
   
  </div>
</template>

<script lang="ts">
 import {defineComponent} from "vue"
export default defineComponent({
  name :"About",
 
});


</script>
<script lang="ts" setup>
import {ref}from 'vue';
let count = ref(1)
console.log(count.value);
const changeCount=()=>{
  count.value++

  return{
    changeCount
  }
}

</script>